package com.hsgene.product.condition;

import com.hsgene.common.util.support.LimitHelper;
import org.apache.commons.lang.StringUtils;

/**
 * @Description: 商品回复查询列表
 * @ProjectName: hdas-geneshop
 * @Package: com.hsgene.product.condition
 * @Author: 江承良
 * @CreateDate: 2018/10/19 14:26
 * @Version: 1.0
 * Copyright: Copyright (c) 2018
 */
public class CommentCondition {
    /**
     * 套餐名称
     */
    private String packageName;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 回复状态
     */
    private Integer isReply;

    /**
     * 评价开始时间
     */
    private String startTime;

    /**
     * 评价结束时间
     */
    private String endTime;

    /**
     * 评分
     */
    private Integer commentLevel;

    /**
     * 评价内容
     */
    private String content;

    /**
     * 分页条件
     */
    private LimitHelper limitHelper;

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getIsReply() {
        return isReply;
    }

    public void setIsReply(Integer isReply) {
        this.isReply = isReply;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        if(StringUtils.isNotEmpty(startTime)){
            startTime = startTime+" 00:00:00";
        }
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        if(StringUtils.isNotEmpty(endTime)){
            endTime = endTime+" 23:59:59";
        }
        this.endTime = endTime;
    }

    public Integer getCommentLevel() {
        return commentLevel;
    }

    public void setCommentLevel(Integer commentLevel) {
        this.commentLevel = commentLevel;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LimitHelper getLimitHelper() {
        return limitHelper;
    }

    public void setLimitHelper(LimitHelper limitHelper) {
        this.limitHelper = limitHelper;
    }
}
